<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<html>
<head>
<title>Login Page</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jsp/stylesheets/style_production.css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jsp/js/jquery-1.5.2.min.js"></script>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						//сабмит формы
						$('#submit').click(function() {
							$("form#login_form").submit();
						});
						//что бы hover работал и в IE
						$('#submit')
								.hover(
										function() {
											$(this)
													.css("background",
															"url('${pageContext.request.contextPath}/jsp/images/login_submit_hover.png')")
										},
										function() {
											$(this)
													.css("background",
															"url('${pageContext.request.contextPath}/jsp/images/login_submit.png')")
										});
						//нажатие и ужерживание клавиши мыши
						$('#submit')
								.mousedown(
										function() {
											$(this)
													.css("background",
															"url('${pageContext.request.contextPath}/jsp/images/login_submit_press.png')")
										});
					});
</script>
</head>
<body id="login">
<div id="container">
<div id="logo" class="float_left"></div>
<div id="delimetr" class="float_left"></div>
<div id="description" class="float_left"><span>studing
control system</span></div>
<div class="cleaner"></div>
<div id="auth_form"><html:form action="/login.do?method=login"
	styleId="login_form">
	<table>
		<tr>
			<td class="left"><label>Email</label></td>
			<td><html:text name="loginForm" property="userName"
				value="blinov@gmail.com" /></td>
		</tr>
		<tr>
			<td colspan="2" class="form_dellimetr"></td>
		</tr>
		<tr>
			<td class="left"><label>Пароль</label></td>
			<td><html:password name="loginForm" property="password"
				value="password7" /></td>
		</tr>
		<tr>
			<td colspan="2" class="form_dellimetr"><label id="save_me"><html:checkbox
				property="rememberMe" /><span>запомнить</span></label>
			<div class="cleaner"></div>
			</td>
		</tr>
	</table>
	<div id="submit"></div>
</html:form></div>
<div style="color: red"><html:errors /></div>
<div id="copyright"><span>&copy; 2011 SCS BSU studing control system</span></div>
</div>
</body>
</html>